#include "sizer.h"
#include "bi.h"

Sizer::Sizer(const wxString& title) : wxFrame(NULL, -1, title, wxPoint(-1, -1), wxSize(1024, 512))
{
	menubar = new wxMenuBar;
	file = new wxMenu;
	edit = new wxMenu;
	help = new wxMenu;

	menubar->Append(file, wxT("&File"));
	menubar->Append(edit, wxT("&Edit"));
	menubar->Append(help, wxT("&Help"));
	SetMenuBar(menubar);

	textctrl = new wxTextCtrl(this, -1, wxT(""), wxPoint(-1, -1), wxSize(1024, 512), wxTE_MULTILINE|wxTE_RICH);

	textctrl->SetDefaultStyle(wxTextAttr(*wxRED));
	textctrl->AppendText("Red text\n");
	textctrl->SetDefaultStyle(wxTextAttr(wxNullColour, *wxLIGHT_GREY));
	textctrl->AppendText("Red on grey text\n");
	textctrl->SetDefaultStyle(wxTextAttr(*wxBLUE));
	textctrl->AppendText("Blue on grey text\n");
	textctrl->SetDefaultStyle(wxTextAttr(*wxBLACK,*wxWHITE));

	wxStreamToTextRedirector redirect(textctrl);
	bldinfoPrintBldInfo();

	Centre();
}
